<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Upload Status</title>
</head>
<body>
<h1>File Upload Status</h1>

<div th:if="${success}">
    <p style="color:green;">Success!</p>
    <p>Your file has been uploaded successfully.</p>
</div>

<div th:unless="${success}">
    <p style="color:red;">Error!</p>
    <p>There was an error uploading your file. Please try again.</p>
</div>

<div th:text="${message}" th:remove="tag"></div>
<!-- 上面的th:text用于显示额外的错误或成功信息，由后台控制 -->

<a href="/" th:href="@{/}">Back to Home</a>
</body>
</html>